package com.quan.bweb.services;

import com.quan.bweb.dao.IJobStPfbzDao;
import com.quan.bweb.entity.User;
import com.quan.bweb.interfaces.userInterface;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;
import java.util.UUID;

@Service
public class userService implements userInterface {
    @Autowired
    IJobStPfbzDao jobStPfbzDao;


    @Override
    // @GlobalTransactional
    public User getUser(String id) {
        User user = new User();
        user.setRid(UUID.randomUUID().toString());
        user.setName("hello");
//        jobStPfbzDao.save(user);
        //int i = 1/0;
        return user;
    }
}
